#include "Task_Button.h"





/* OSD ????? */
#define Button_TASK_PRIO 12
/* OSD ?????? */
#define Button_STK_SIZE 256
/* OSD ?????? */
TaskHandle_t ButtonTask_Handler;
//QueueHandle_t ButtonRefresh_Sem;
QueueHandle_t Button_GpsModule_sem;
/* OSD ?????? */
void Button_task(void *pvParameters);


void task_Button_Create(void)
{
	//??OSD??
    xTaskCreate((TaskFunction_t )Button_task,
                (const char*    )"Button_task",
                (uint16_t       )Button_STK_SIZE,
                (void*          )NULL,
                (UBaseType_t    )Button_TASK_PRIO,
                (TaskHandle_t*  )&ButtonTask_Handler);
			
		//OsdRefresh_Sem = xSemaphoreCreateBinary();		//Osd场刷新信号量
		//Osd_GpsModule_sem = xSemaphoreCreateBinary();	//GPS接收信号量
}

#include "stdbool.h"
#include "math.h"
#include <stdio.h>

/* LED0 ???? */
void Button_task(void *pvParameters)
{
	uint8_t num,code,row,rank,numf,tt;
	
	while(1)
	{		
		button_ticks();
		vTaskDelay(2);
	}
}